package com.xtkj.superclub_entity.entity.travel;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xtkj.superclub_entity.entity.user.User;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * @author lizheqi
 * @create 2019-12-25-9:54
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString
@TableName("c_travels")
public class Travel implements Serializable {
    @TableId(value = "travel_id",type = IdType.INPUT)
    private String travelId;//游记编号
    private String travelTitle;//游记标题
    private String activityId;//关联活动编号
    private String travelFace;//游记封面
    private String travelContent;//游记内容
    private String userId;//发布人
    @TableField(exist = false)
    private User user;
    private String teamId;//队伍编号
    private int travelTypeId;
    @TableField(exist = false)
    private TravelType travelType;//游记类型
    private int readNum;//阅读量
    private String location;//地理位置
    private String channel;//渠道
    private String iemi;//iemi
    private String ipaddress;//ip地址
    private Date createdtm;//创建时间
    private Date updatedtm;//修改时间
}
